package com.lagou.edu.service;

import com.lagou.edu.service.impl.EmailFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author
 */
@FeignClient(value = "lagou-service-email", fallback = EmailFallBack.class, path = "/email")
public interface EmailServiceFeignClient {

    @GetMapping("/{email}/{code}")
    Boolean sendEmail(@PathVariable String email, @PathVariable String code);
}
